
﻿using NewsEntity.Models;
using NewsSevicer.ResultClass;
using System;
using System.Collections.Generic;
using System.Text;

namespace NewsSevicer.Interface
{
public interface INews
    {


  
        /// <summary>
        /// 获取指定新闻id的所有评论
        /// </summary>
        /// <param name="NewsID"></param>
        /// <returns></returns>
        ResultData GETNewsComment(int Newsid);

        /// <summary>
        /// 新闻评论
        /// </summary>
        /// <param name="newInfo"></param>
        /// <returns></returns>
        bool NewsComment(NewInfo newInfo);
        Object GetNews(string url);
        /// <summary>
        /// 获取新闻类型id
        /// </summary>
        /// <returns></returns>
        List<NewsType> GetNewsType();
        //获取指定新闻id
        string GetNewsType(int id); 
        /// <summary>
        /// 获取banner
        /// </summary>
        /// <returns></returns>
        ResultData GetBannerInfo(string url);
        List<News> GetTypeNews(int id);
        /// <summary>
        /// 获取单条新闻
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        News GetSingleNews(int id);
        /// <summary>
        /// 最新评论的新闻
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
      ResultData GetPLNews (string Url);


    }
}
